<div id="left_column" class="column_left">
     <?php echo $this->element('user/profile_left_menu'); ?>
</div>
<div id="right_column" class="column_right">
    <div id="main-content">
          <div id="user-thumbnail" class="clearfix">
                <?php
                    if($currentUser && $existUser){
                        echo $this->Html->image($avatar);
                        echo $this->Html->div('author-username', $username);
                    }

                ?>
            </div>
        <?php
         if($currentUser){
             $paginator->options(array('url'=>array_merge(array('username' => $username),$this->passedArgs)));
         
         ?>
             <?php echo $this->Html->div('nav-profile clearfix', __("That's you!", true)) ?>
                <div id="content_notice">
                 <?php echo $this->Bnotice->displayNotice($notices, true)?>
                    <div class="paging clearfix">
                        <p class="before"><?php echo $this->Paginator->prev(__('« Previous', true), array(), null, array('class'=>'disabled'));?></p>
                        <p class="more"><?php echo $this->Paginator->next(__('Next »', true), array(), null, array('class' => 'disabled'));?></p>
                    </div>
                </div>

         <?php
         }elseif($existUser){
             $paginator->options(array('url'=>array_merge(array('username' => $username),$this->passedArgs)));
        ?>
        <div class="nav-profile clearfix" >
        <?php
                if($this->Bayon->isLogging())
                    echo $this->Html->tag('span', $this->Follow->following( $following, $friend_id, $username ), array('id' => 'span_follow_action'));
                else
                    echo $this->Html->link(__('Login', true), '/login', array('class' => 'button'));
                ?>
       </div>
                <div id="content_notice">

                    <?php echo $this->Bnotice->displayNotice($notices, true)?>

                    <div class="paging clearfix">
                        <p class="before"><?php echo $this->Paginator->prev(__('« Previous', true), array(), null, array('class'=>'disabled'));?></p>
                        <p class="more"><?php echo $this->Paginator->next(__('Next »', true), array(), null, array('class' => 'disabled'));?></p>
                    </div>
                </div>
         <?php

         }else{
                echo sprintf('<strong> %s </strong> has not existed in our system.', $username);
         }
        ?>
    </div><!-- end main content -->
    <div id="main-right">
    </div>
</div><!-- end right-column -->
<script type="text/javascript">
     //<![CDATA[
     $(document).ready(function(){
                $("ul > li.notice").bind('mouseover', function(){
                    var actionId ='#ul_' + $(this).attr('id');
                    $(actionId).addClass('actions-active');
                });
                $("ul > li.notice").bind('mouseout', function(){
                    var actionId ='#ul_' + $(this).attr('id');
                    $(actionId).removeClass('actions-active');
                });

         });
    //]]>
</script>
